/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.musictalk.message.model;

import java.util.ArrayList;

/**
 *
 * @author AIDEN
 */
public class OnlineFriend extends Message{

    private String receiverID;
    private ArrayList<String> onlineFriend;

    public OnlineFriend() {
        this.setMsgType(Message.MSG_RETURN_ONLINE_FRIEND);
        this.onlineFriend = new ArrayList<String>();
    }

    public OnlineFriend(String receiverID) {
        this.setMsgType(Message.MSG_RETURN_ONLINE_FRIEND);
        this.onlineFriend = new ArrayList<String>();
        this.receiverID = receiverID;
    }

    public String getReceiverID() {
        return receiverID;
    }

    public void setReceiverID(String receiverID) {
        this.receiverID = receiverID;
    }

    public ArrayList<String> getOnlineFriend() {
        return onlineFriend;
    }

    public void setOnlineFriend(ArrayList<String> onlineFriend) {
        this.onlineFriend = onlineFriend;
    }

    public void addOnline(String UID){
        this.onlineFriend.add(UID);
    }

}
